//
//  DeviceListCell.m
//  ForYourBeauty
//
//  Created by Kelly xu on 2019/5/23.
//  Copyright © 2019 changrenTech. All rights reserved.
//

#import "DeviceListCell.h"

@implementation DeviceListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setCellValue:(DeviceListModel*)model{
    self.titleLab.text = [NSString stringWithFormat:@"%@",model.deviceType];
    self.snCodeLab.text = [NSString stringWithFormat:@"%@",model.deviceSn];
    if (model.online == 0) {
        self.stateLab.text = @"未连接";
    }else{
        self.stateLab.text = @"已链接";
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
